import 'package:changxindianzishangwu/cache/local_cache.dart';
import 'package:changxindianzishangwu/http/base/ec_base_request.dart';
import 'package:changxindianzishangwu/http/request/select_user_request.dart';
import 'package:changxindianzishangwu/http/zd_net.dart';
import 'package:changxindianzishangwu/model/select_user.dart';

class SelectUserDao {
  static getUserInfo(String userID) async {
    EcBaseRequest request = SelectUserRequest();
    request.add("nickname", userID).add("access_token", getAppLoginToken());
    var result = await ZdNet.getInstance().send(request);
    print(result);
    return SelectUser.fromJson(result);
  }
}
